package com.linkai.io;

import java.util.Arrays;
import java.util.Scanner;

/**
 * @Description:
 * @Author: 林凯
 * @Date: 2021/10/17 19:06
 */
public class T10 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String line;
        while (sc.hasNext()) {
            line = sc.nextLine();
            String[] lineSplit = line.split(",");
            Arrays.sort(lineSplit);
            for (int i = 0; i < lineSplit.length - 1; i++) {
                System.out.print(lineSplit[i] + ",");
            }
            System.out.println(lineSplit[lineSplit.length - 1]);
        }
    }
}
